Package-level declarations

Types

Link copied to clipboard

Result type for fetching master inspection form for a service task.

Link copied to clipboard

Result wrapper for get service task detail operation. SKIE-compatible sealed class for Swift interoperability.

Link copied to clipboard

Result wrapper for get service tasks operation. SKIE-compatible sealed class for Swift interoperability.

Link copied to clipboard

Result type for getting submitted inspection form operations.

Link copied to clipboard

Result wrapper for submit service task inspection form operation. SKIE-compatible sealed class for Swift interoperability.

Link copied to clipboard

Result wrapper for update service task inspection form operation. SKIE-compatible sealed class for Swift interoperability.

Link copied to clipboard

Result wrapper for update service task status operation. SKIE-compatible sealed class for Swift interoperability.

Link copied to clipboard
data class ZyncServiceTask(val serviceTaskUid: String, val serviceTaskTitle: String, val serviceTaskDescription: String?, val sequenceNo: Int, val estimateDuration: ZyncServiceTaskEstimatedDuration?, val scheduledDuration: Double, val actualStartTime: String?, val actualEndTime: String?, val actualDuration: Double, val serviceTaskStatus: ZyncServiceTaskStatus, val assignedTo: List<ZyncServiceTaskAssignedUser>, val inspectionFormSubmissionUid: String?, val inspectionForm: ZyncServiceTaskInspectionForm?, val serviceTaskAsset: ZyncServiceTaskAsset?, val createdAt: String?) : Keyed<String>

Basic ServiceTask domain model representing a service task in the Zuper system. Matches the structure from zuper-android ServiceTask.kt

Link copied to clipboard
data class ZyncServiceTaskAsset(val assetUid: String, val assetCode: String, val assetSerialNumber: String?, val assetName: String, val assetQuantity: Int, val assetImage: String?, val assetStatus: ZyncAssetStatus?, val warrantyExpiryDate: String?)

ServiceTask asset information.

Link copied to clipboard
data class ZyncServiceTaskAssignedUser(val user: ZyncUser, val team: ZyncTeam)

ServiceTask assigned user combining user and team information.

Link copied to clipboard
data class ZyncServiceTaskDetail(val serviceTaskUid: String, val module: ZuperModule, val moduleUid: String, val serviceTaskTitle: String, val serviceTaskDescription: String?, val sequenceNo: Int, val estimateDuration: ZyncServiceTaskEstimatedDuration?, val scheduledDuration: Double?, val actualStartTime: String?, val actualEndTime: String?, val actualDuration: Double?, val serviceTaskAsset: ZyncServiceTaskAsset?, val inspectionForm: ZyncServiceTaskInspectionForm?, val inspectionFormSubmissionUid: String?, val serviceTaskStatus: ZyncServiceTaskStatus, val serviceTaskStatusHistory: List<ZyncServiceTaskStatusHistory>, val assignedTo: List<ZyncServiceTaskAssignedUser>?, val latestInspectionFormSubmissionTimestamp: String?, val submittedInspectionForm: ZyncSubmittedInspectionForm?)

Detailed ServiceTask domain model with additional information. Matches the structure from zuper-android ServiceTaskDetail.kt

Link copied to clipboard
data class ZyncServiceTaskEstimatedDuration(val days: Int, val hours: Int, val minutes: Int)

ServiceTask estimated duration.

Link copied to clipboard
data class ZyncServiceTaskInspectionForm(val assetFormUid: String, val assetFormName: String, val description: String?, val assetCategoryUid: String?, val isActive: Boolean, val inspectionFormFields: List<ZyncMasterFormField>, val createdAt: String?)

ServiceTask inspection form information.

Link copied to clipboard
data class ZyncServiceTaskInspectionFormSubmission(val jobUid: String, val serviceTaskUid: String, val masterFormUid: String, val formFields: List<ZyncJobStatusChecklistItem>, val assetUid: String?)

Content model for service task inspection form submission operations.

data class ZyncServiceTaskInspectionFormUpdateSubmission(val formSubmissionUid: String, val jobUid: String, val serviceTaskUid: String, val masterFormUid: String, val formFields: List<ZyncJobStatusChecklistItem>, val assetUid: String?)

Content model for updating existing service task inspection form submissions.

Link copied to clipboard

ServiceTask status enumeration.

Link copied to clipboard
data class ZyncServiceTaskStatusHistory(val status: ZyncServiceTaskStatus, val createdAt: String?, val remarks: String?, val doneBy: ZyncCreatedByUser)

ServiceTask status history entry.

Link copied to clipboard
data class ZyncServiceTaskStatusUpdateData(val jobUid: String, val serviceTaskUid: String, val serviceTaskStatus: ZyncServiceTaskStatus, val remarks: String? = null, val assignToTask: Boolean = false, val assignToJob: Boolean = false, val assignFromTeam: String? = null)

Content model for updating service task status with offline-first support.

Link copied to clipboard

Sealed class representing different types of service task change events that can be received via database observation and delta sync.

Link copied to clipboard
data class ZyncSubmittedFormJob(val jobUid: String, val jobTitle: String?)

Job information associated with a submitted inspection form. Currently simplified structure that can be expanded in the future.

Link copied to clipboard
data class ZyncSubmittedInspectionForm(val assetFormUid: String, val assetFormSubmissionUid: String, val name: String, val description: String?, val fields: List<ZyncFormField>, val job: ZyncSubmittedFormJob?, val createdBy: ZyncCreatedByUser?, val createdAt: String?, val updatedAt: String?)

Domain model representing a submitted inspection form from a service task.